<#include "/lib/macro-lib.ftl"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<#include "../inc/commonJs.html">
<body>
<div align="center" class="easyui-panel" data-options='fit:true,border:false'>
<script>
<script>
function formCheck(f){
	if (f.fldm.value == ""){
		alert("请填写分类代码!");
		f.fldm.focus();
		return false;
	}
	if (f.flmc.value == ""){
		alert("请填写角色名称!");
		f.flmc.focus();
		return false;
	}
}
<#if ret??>
  alert('${ret}');
</#if></script>
<br>
<table width="98%" border="0" cellpadding="4" cellspacing="0" class="table_all">
<form name="frmobj" method="post" action="zdeditact.do" onSubmit="return formCheck(this)">
    <tr> 
      <td width="100" class="td_table_1">分类代码:</td>
      <td width="*" class="td_table_2"> 
        <input type="hidden" name="fldm" value="${obj.fldm!}">${obj.fldm!}
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">分类名称:</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="flmc" value="${obj.flmc}" >
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">排序:</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="px" size="5" value="${obj.px}">
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">状态
      <td width="*" class="td_table_2"> 
      	<input type="text" name="zt" size="5" value="${obj.zt}">
      	<!--
        <select name="zt">
         <option value="1" <#if obj.zt==1>selected</#if>>启用</option>
         <option value="0" <#if obj.zt==0>selected</#if>>禁用</option>
        </select>
        -->
      </td>
    </tr>
    <tr> 
      <td class="td_table_2">&nbsp;</td><td class="td_table_2"> 
          <input type="submit" class="button_70px" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="button" class="button_70px" value="返回列表" onclick="location.href='zdlist.do'">
      </td>
    </tr>
</form>
</table>
</div>
</body>
</html>
